package com.yxw.springmvc.userBehavior.convert;

import com.yxw.springmvc.userBehavior.model.UserRole;
import com.yxw.springmvc.userBehavior.request.UserRoleAddRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Created by hp on 2016/9/27.
 */
@Service
@Slf4j
public class UserRoleConvert {
    public UserRole convert(UserRoleAddRequest request){
        UserRole role = new UserRole();
        role.setUserCode(request.getUserCode());
        role.setRoleId(request.getRoleId());
        return role;
    }
}
